package com.oren.Thread.study.day01;

/**
 * Created by IntelliJ IDEA.
 * User: wangshiwei
 * Date: 2018/8/3
 * Time: 13:27
 * describe:
 */
public class Demo1 {

    public static void main(String[] args) {

        //System.out.println(Thread.currentThread().getName());

        //Demo2中的测试类
       /* Demo2 a1=new Demo2("aa");
        Demo2 a2=new Demo2("bb");
        Demo2 a3=new Demo2("cc");
        a1.start();
        a2.start();
        a3.start();*/

        //demo3运行
        Demo3 demo3=new Demo3();
        Thread thread=new Thread(demo3,"A");
        Thread thread1=new Thread(demo3,"B");
        Thread thread2=new Thread(demo3,"C");
        Thread thread3=new Thread(demo3,"D");
        Thread thread4=new Thread(demo3,"E");
        Thread thread5=new Thread(demo3,"F");
        Thread thread6=new Thread(demo3,"H");

        thread.start();
        thread1.start();
        thread2.start();
        thread3.start();
        thread4.start();
        thread5.start();
        thread6.start();


    }
}
